Introduction

Notebook contains demo of various Scialb functions within Jupyter.

Simple arithmetic


In [3]:
a=1;
b=a+1


1.
2.

In [6]:
disp(a)


1.

In [7]:
//Nyquist curve
s=poly(0,'s')
h=syslin('c',(s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01));
h1=h*syslin('c',(s^2+2*0.1*15.1*s+228.01)/(s^2+2*0.9*15*s+225))
clf();    nyquist(h1)
// add a datatip
ax=gca();
h_h=ax.children($).children(2);//handle on Nyquist curve of h
tip=datatipCreate(h_h,[1.331,0.684]);
datatipSetOrientation(tip,"upper left");


s
2        3   4
22801 + 4406.18s + 382.37s + 21.02s + s
-----------------------------------------
2        3   4
22952.25 + 4117.77s + 490.63s + 33.06s + s
0-11-1.5-0.50.51.50-11-0.50.5Re(h(2iπf))Im(h(2iπf))1.331+0.6841i-1.352Hz-3.363.36-2.362.36-1.981.98-1.741.74-1.331.330.001Nyquist plot

Plots in new windows


In [3]:
x=[0:0.1:2*%pi]';
f4=scf(4);
f0=scf(0); 
plot2d(x,[sin(x) sin(2*x) sin(3*x)])
scf(f4);
plot2d(sin(x))


02040601030507051525354555650-11-0.8-0.6-0.4-0.20.20.40.60.8
024613570.51.52.53.54.55.56.50-11-0.8-0.6-0.4-0.20.20.40.60.8